function selectThis(obj){
            document.getElementById('sel_num_pag').value = obj.firstChild.value; 
            document.getElementById(form_id).submit();
}
function selectLast(obj){
    document.getElementById('sel_num_pag').value = obj.firstChild.value;
    var first=(obj.firstChild.value-5)>0?(obj.firstChild.value-5):1;
    document.getElementById('prim_pag').value=first;
    document.getElementById(form_id).submit();
}
function selectFirst(obj){
    document.getElementById('sel_num_pag').value = obj.firstChild.value; 
    document.getElementById('prim_pag').value=1;
    document.getElementById(form_id).submit();
}
function next(indx){
    document.getElementById('prim_pag').value=indx+1;
    document.getElementById('sel_num_pag').value=indx+1;
    document.getElementById(form_id).submit();
}
function prev(indx){
    document.getElementById('prim_pag').value=(indx-6)>0?(indx-6):1;
    document.getElementById('sel_num_pag').value=indx-1;
    document.getElementById(form_id).submit();
}


